<%@page import="java.util.Random"%>
<%@page import="java.lang.Math.*" %>
<%
    String cap = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
    String catchuoi="";

    for(int temp_cap=0;temp_cap<=6; temp_cap++)
        {
        Random rd = new Random();
        int vt = rd.nextInt((61+1)-0)+0;
        if(vt>0)
        catchuoi=catchuoi+ cap.substring(vt-1, vt);
        else
            catchuoi=catchuoi+cap.substring(vt,vt+1);
        }
    session.setAttribute("captcha", catchuoi);
    %>

    <div style='-moz-user-select: none;-webkit-user-select: none;' onselectstart='return false;'><% out.print(catchuoi);%></div>
   
    